﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommandPattern.Sample
{
    class SchoolMaster
    {
        // 院领导

        public void Method()
        {
            // 初始化Receiver、Invoke和Command
            Receiver r = new Receiver();
            Command c = new ConcreteCommand(r);
            Invoke i = new Invoke(c);

            // 院领导发出命令
            i.ExecuteCommand();
            Console.ReadLine();
        }
    }
}
